﻿using ConsoleApplication2.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2.Dao
{
    /// <summary>
    /// 异常处理类
    /// </summary>
    public class ErrorMessageCmd
    {
        /// <summary>
        /// 插入异常
        /// </summary>
        /// <param name="ex"></param>
        public static void insertError(Exception ex)
        {
            T_Error_Message entity = new T_Error_Message();
            entity.DateTime = DateTime.Now.ToString();
            entity.Meg = ex.Message;

            MyDataHelp.Insert<T_Error_Message>(entity);
        }
    }
}
